{foreach from=$elements item="el"}
{if $el.group!='element'}
	{if $el.type_of_value=='container'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/container.tpl"}
	{elseif $el.type_of_value=='link'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/link.tpl"}
	{elseif $el.type_of_value=='smalldocum'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/smalldocum.tpl"}
	{elseif $el.type_of_value=='docum'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/docum.tpl"}
	{elseif $el.type_of_value=='radiobutton'}
		{assign var="group_name" value=$el.name}
		{include file="admin/body/fields/radiobutton.tpl"}
		{assign var="group_name_f" value=$el.name}
	{elseif $el.type_of_value=='text'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/text.tpl"}
	{elseif $el.type_of_value=='galery'}
	    {assign var="group_name" value=''}
		{*include file="admin/body/fields/galery.tpl"*}
	{elseif $el.type_of_value=='chekbox'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/chekbox.tpl"}
	{elseif $el.type_of_value=='textarea'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/textarea.tpl"}
	{elseif $el.type_of_value=='file'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/file.tpl"}
	{elseif $el.type_of_value=='image'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/image.tpl"}
	{elseif $el.type_of_value=='date'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/date.tpl"}
	{elseif $el.type_of_value=='flash'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/flash.tpl"}
	{elseif $el.type_of_value=='flashtext'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/flashtext.tpl"}
	{elseif $el.type_of_value=='form'}
		{assign var="group_name" value=''}
		{if isset($_var.type) && $_var.type == 1}
			{include file="admin/body/fields/form_lite.tpl"}
		{else}
			{include file="admin/body/fields/form.tpl"}
		{/if}
	{elseif $el.type_of_value=='form2'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/form2.tpl"}
	{elseif $el.type_of_value=='map'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/map.tpl"}
	{elseif $el.type_of_value=='map2'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/map2.tpl"}
	{elseif $el.type_of_value=='password'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/password.tpl"}
	{elseif $el.type_of_value=='vote'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/vote.tpl"}
	{elseif $el.type_of_value=='disable'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/disable.tpl"}
	{elseif $el.type_of_value=='client_groups'}
		{assign var="group_name" value=''}
		{include file="admin/modules/client/fields/client_groups.tpl"}
	{elseif $el.type_of_value=='select'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/select.tpl"}
	{elseif $el.type_of_value=='shop_container'}
		{assign var="group_name" value=''}
		{include file="admin/modules/shop/fields/shop_container.tpl"}
	{elseif $el.type_of_value=='docum_container'}
		{assign var="group_name" value=''}
		{include file="admin/modules/docum/fields/docum_container.tpl"}
	{elseif $el.type_of_value=='contacts_container'}
		{assign var="group_name" value=''}
		{include file="admin/modules/contacts/fields/contacts_container.tpl"}
	{elseif $el.type_of_value=='realstate_container'}
		{assign var="group_name" value=''}
		{include file="admin/modules/realstate/fields/realstate_container.tpl"}
	{elseif $el.type_of_value=='forum_container'}
		{assign var="group_name" value=''}
		{include file="admin/modules/forum/fields/forum_container.tpl"}
	{elseif $el.type_of_value=='spacer'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/spacer.tpl"}
	{elseif $el.type_of_value=='imagew'}
		{assign var="group_name" value=''}
		{include file="admin/modules/watermark/fields/imagew.tpl"}
	{elseif $el.type_of_value=='watermark'}
		{assign var="group_name" value=''}
		{include file="admin/modules/watermark/fields/watermark.tpl"}
	{elseif $el.type_of_value=='select_customer'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/select_customer.tpl"}
	{elseif $el.type_of_value=='super_select'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/super_select.tpl"}
	{elseif $el.type_of_value=='mail_template'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/mail_template.tpl"}
	{elseif $el.type_of_value=='select_elements_from'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/select_elements_from.tpl"}
	{elseif $el.type_of_value=='select_childs_from'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/select_childs_from.tpl"}
	{elseif $el.type_of_value=='select_produts_with_group'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/select_produts_with_group.tpl"}
	{elseif $el.type_of_value=='select_childs_with_childs_from'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/select_childs_with_childs_from.tpl"}
	{elseif $el.type_of_value=='checkbox_elements_from'}
		{assign var="group_name" value=''}
		{include file="admin/body/fields/checkbox_elements_from.tpl"}
	{elseif $el.type_of_value}
	    {assign var="group_name" value=''}
		{include file="admin/body/fields/`$el.type_of_value`.tpl"}
	{/if}
	{assign var="first" value=0}
{/if}
{/foreach}